<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>字典管理</title>
<link rel="stylesheet" href="/plugins/layui/css/layui.css" media="all">
<link rel="stylesheet" href="/plugins/font-awesome-4.7.0/css/font-awesome.css" media="all">
<link rel="stylesheet" href="/css/dtree.css"  media="all" />
<link rel="stylesheet" href="/css/font/dtreefont.css"  media="all" />
<link rel="stylesheet" href="/css/cst.css"  media="all" />
</head>
<style>
    .addicon{
        margin-right: 5px !important;
    }
    .restbtn{
        margin-right:7px !important;
    }
</style>
<body>
        <!--    查询条件开始-->
            <form id="searchFrm" lay-filter="searchFrm" class="layui-form" style="margin-top: 15px;margin-bottom: 20px">
                <div class="layui-row layui-form-item">
                    <div class="layui-row">
                        <div class="layui-col-md11">
                            <label class="user-login-icon layui-icon layui-icon-search"></label>
                            <input type="text" name="groupname" placeholder="请输入字典标识名" autocomplete="off" class="layui-input" style="padding-left: 38px">
                        </div>
                        <div class="layui-col-md1">
                            <button type="button"  class="layui-btn" lay-submit="" lay-filter="doSearch"><i class="layui-icon layui-icon-search"></i></button>
                        </div>
                    </div>
                </div>
            </form>
    <table class="layui-table" id="menuTable" lay-filter="menuTable" style="margin-top: -10px"></table>
        <!--        数据表格结束-->

        <!-- 操作列 -->
        <script type="text/html" id="menuRowBar">
            <div class="layui-btn-container">
                <button class="layui-btn  layui-btn-xs" lay-event="update"><span class="addicon fa fa-pencil-square-o"></span>修改</button>
                <button class="layui-btn layui-btn-danger layui-btn-xs" lay-event="delete"><span class="fa fa-trash-o addicon"></span>删除</button>
            </div>
        </script>
        <!--        操作头部工具栏-->
        <script type="text/html" id="menuToolBar">
            <button class="layui-btn layui-btn-sm barbtn" lay-event="add"><span class="fa fa-plus addicon"></span>添加</button>
            <button class="layui-btn layui-btn-sm layui-btn-danger barbtn" lay-event="batchdelte"><span class="fa fa-trash-o addicon"></span>批量删除</button>
        </script>


        <!-- 添加和修改的弹出层开始 -->
        <div style="display: none;padding-left: 120px;padding-top: 50px" id="addOrUpdateDiv">
            <form action="" method="post" class="layui-form " id="dataFrm" lay-filter="dataFrm">

                <div class="layui-form-item">
                    <div class="layui-inline">
                        <label class="layui-form-label">字典ID：</label>
                        <div class="layui-input-inline">
                            <input type="hidden" name="id">
                            <input type="tel" name="dictid" lay-verify="required" autocomplete="off" class="layui-input">
                        </div>
                    </div>
                    <div class="layui-inline">
                        <label class="layui-form-label">字典值：</label>
                        <div class="layui-input-inline">
                            <input type="text" name="dictvalue" lay-verify="required" autocomplete="off" class="layui-input">
                        </div>
                    </div>
                </div>

                <div class="layui-form-item">
                    <div class="layui-inline">
                        <label class="layui-form-label">字典标识ID：</label>
                        <div class="layui-input-inline">
                            <input type="hidden" name="id">
                            <input type="tel" name="groupid" lay-verify="required" autocomplete="off" class="layui-input">
                        </div>
                    </div>
                    <div class="layui-inline">
                        <label class="layui-form-label">字典标识名：</label>
                        <div class="layui-input-inline">
                            <input type="text" name="groupname" lay-verify="required" autocomplete="off" class="layui-input">
                        </div>
                    </div>
                </div>

                <div class="layui-form-item">
                    <div class="layui-inline">
                        <label class="layui-form-label">表名：</label>
                        <div class="layui-input-inline">
                            <input type="hidden" name="id">
                            <input type="tel" name="tablename"  autocomplete="off" class="layui-input">
                        </div>
                    </div>
                    <div class="layui-inline">
                        <label class="layui-form-label">列名：</label>
                        <div class="layui-input-inline">
                            <input type="text" name="columnname"  autocomplete="off" class="layui-input">
                        </div>
                    </div>
                </div>

                <div class="layui-form-item">
                    <div class="layui-inline">
                        <label class="layui-form-label">备注：</label>
                        <div class="layui-input-inline">
                            <input type="hidden" name="id">
                            <input type="tel" name="remark"  autocomplete="off" class="layui-input">
                        </div>
                    </div>
                    <div class="layui-inline">
                        <label class="layui-form-label">类别：</label>
                        <div class="layui-input-inline">
                            <input type="text" name="type"  autocomplete="off" class="layui-input">
                        </div>
                    </div>
                </div>

                <div class="layui-form-item" style="width:680px">
                    <div class="layui-block" style="text-align: center">
                        <button type="button" style="margin-left: 25px" class="layui-btn addbtn" lay-submit=""  lay-filter="doSubmit" id="doSubmit" ><i class="fa fa-check-square restbtn"></i>提交</button>
                        <button type="reset" class="layui-btn layui-btn-warm addrestbtn "><i class="fa fa-refresh restbtn"></i>重置</button>
                    </div>
                </div>
            </form>
        </div>
    <!-- 添加和修改的弹出层结束 -->
<script src="/plugins/layui/layui.js"></script>
<script src="/js/sysmgr/dictionaryManager.js"></script>
</body>
</html>